﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MethodWorx.Core.DomainModel;
using MethodWorx.CMS.Plugins;

namespace MethodWorx.CMS.Membership
{
    public class UserDashboardWidget : Entity
    {
        public UserDashboardWidget(User user, IPlugin plugin, DashboardWidget dw, int sequence, int columnIndex)
        {
            this.Id = Guid.NewGuid();
            this.ColumnIndex = columnIndex;
            this.Height = null;
            this.PluginId = plugin.Id;
            this.Sequence = sequence;
            this.User = user;
            this.WidgetId = dw.Id;
        }

        public UserDashboardWidget()
        {
        }

        public virtual User User { get; set; }
        public Guid PluginId { get; set; }
        public Guid WidgetId { get; set; }
        public int ColumnIndex { get; set; }
        public int Sequence { get; set; }
        public int? Height { get; set; }
    }
}
